from fastapi import APIRouter, Depends, HTTPException, status, Path
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import select
from typing import Optional, List, Dict, Any
from pydantic import BaseModel, Field, ConfigDict

from app.core.base.dependencies import get_db_session, get_style_template_service, get_image_template_service
from app.core.base.response import ApiResponse, ResponseBuilder
from app.schemas.templates.template_create_schema import (
    StyleTemplateCreateRequest,
    TemplateCreateResponse,
    StyleTemplateUpdateRequest,  # 新增
    TemplateUpdateResponse,      # 新增
    TemplateCopyRequest,
    TemplateCopyResponse
)
from app.schemas.templates.ccf import (
    StyleTemplateCreateRequest,
    TemplateCreateResponse,
    StyleTemplateUpdateRequest,  # 新增
    TemplateUpdateResponse,      # 新增
    TemplateCopyRequest,
    TemplateCopyResponse
)
